﻿using CGT.Infrastructure.Entity;
using CGT.Infrastructure.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace CGT.Infrastructure.Dto
{
    public class NetworkOrderDetailDto : NetworkOrder
    {
        /// <summary>
        /// 省名
        /// </summary>
        public string ProvinceName
        {
            get; set;
        }

        /// <summary>
        /// 城市名
        /// </summary>
        public string CityName
        {
            get; set;
        }

        /// <summary>
        /// 分类名
        /// </summary>
        public string BizTypeName
        {
            get; set;
        }

        /// <summary>
        /// 订单状态
        /// </summary>
        public string OrderStatusName
        {
            get
            {
                return OF.Utility.EnumHelper.GetEnumDesc(typeof(OrderStateEnum), OrderState);
            }
        }

        /// <summary>
        /// 支付状态
        /// </summary>
        public string PayStatusName
        {
            get
            {
                return OF.Utility.EnumHelper.GetEnumDesc(typeof(PayStateEnum), PayState);
            }
        }

        /// <summary>
        /// 收件人姓名
        /// </summary>
        public string MailUserName
        {
            get;
            set;
        }

        /// <summary>
        /// 收件人手机
        /// </summary>
        public string MailUserMobile
        {
            get;
            set;
        }

        /// <summary>
        /// 邮寄地址
        /// </summary>
        public string MailAddress
        {
            get;
            set;
        }

        /// <summary>
        /// 邮寄省
        /// </summary>
        public string MailProvinceName
        {
            get;
            set;
        }

        /// <summary>
        /// 邮寄市
        /// </summary>
        public string MailCityName
        {
            get;
            set;
        }

        /// <summary>
        /// 支付状态
        /// </summary>
        public string DrivingLicenceImageUrl
        {
            get
            {
                string httpUrl = string.Format("{0}/DrivingLicence", ImageSrc);
                return string.Format("{0}/{1}", httpUrl, DrivingLicenceImage);
            }
        }

        /// <summary>
        /// 图片地址
        /// </summary>
        public string DrivingLicenceBackImageUrl
        {
            get
            {
                string httpUrl = string.Format("{0}/DrivingLicenceBack", ImageSrc);
                return string.Format("{0}/{1}", httpUrl, DrivingLicenceBackImage);
            }
        }

        /// <summary>
        /// 图片地址
        /// </summary>
        public string CompulsoryImageUrl
        {
            get
            {
                string httpUrl = string.Format("{0}/Compulsory", ImageSrc);
                return string.Format("{0}/{1}", httpUrl, CompulsoryImage);
            }
        }

        /// <summary>
        /// 图片地址
        /// </summary>
        public string BeforePlateNoImageUrl
        {
            get
            {
                string httpUrl = string.Format("{0}/BeforePlateNo", ImageSrc);
                return string.Format("{0}/{1}", httpUrl, BeforePlateNoImage);
            }
        }

        /// <summary>
        /// 图片地址
        /// </summary>
        public string AfterPlateNoImageUrl
        {
            get
            {
                string httpUrl = string.Format("{0}/AfterPlateNo", ImageSrc);
                return string.Format("{0}/{1}", httpUrl, AfterPlateNoImage);
            }
        }

        /// <summary>
        /// 图片地址
        /// </summary>
        public string TemporaryLicenceImageUrl
        {
            get
            {
                string httpUrl = string.Format("{0}/TemporaryLicence", ImageSrc);
                return string.Format("{0}/{1}", httpUrl, TemporaryLicenceImage);
            }
        }

        /// <summary>
        /// 图片地址
        /// </summary>
        public string TemporaryLicenceBackImageUrl
        {
            get
            {
                string httpUrl = string.Format("{0}/TemporaryLicenceBack", ImageSrc);
                return string.Format("{0}/{1}", httpUrl, TemporaryLicenceBackImage);
            }
        }

        /// <summary>
        /// 医院
        /// </summary>
        public string HospitalName
        {
            get;
            set;
        }

        /// <summary>
        /// 图片访问地址
        /// </summary>
        private string ImageSrc
        {
            get
            {
                return OF.Utility.SiteUtility.GetAppSettings("ImageSrc");
            }
        }

         

    }
}
